from PyQt5.QtWidgets import QDialog, QPushButton, QHBoxLayout


class ConfigDialog(QDialog):
    def __init__(self):
        super().__init__()
        self.setWindowTitle('配置界面')
        self.setGeometry(400, 400, 400, 300)
        self.button = QPushButton('测试')
        self.button.setFixedSize(100, 50)
        self.container = QHBoxLayout()
        self.container.addWidget(self.button)
        self.setLayout(self.container)

    def get_data(self):
        return 1
